import {request , uploadFile} from "@/utils/request.js";

export default {
    getSubjectlv(data) { 
      return request({
        url: "/api/v1/enrollment/getSubjectlv",
        method: "get",
        data: data
      })
    },
    //分类查询
    getCourseDetailsBySubject(data) { 
      return request({
        url: "/ysapi/v1/enrollment/getCourseDetailsBySubject",
        method: "get",
        data: data
      })
    },
    //报名
    applyEnrollment(data) {
      return request({
        url: "/api/v1/Enrollment/applyEnrollment",
        method: "post",
        data: data
      })
    },
    wxPay(data) {
      return request({
        url: "/ysapi/v1/Enrollment/wxPay",
        method: "post",
        data: data
      })
    },
    createPrePayOrder(data) {
      return request({
        url: "/api/v1/enrollment/createPrePayOrder",
        method: "post",
        data: data
      })
    },
}